package com.dms.modules.community.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 社区收藏实体类
 */
@Data
@TableName("community_favorite")
@ApiModel(value = "社区收藏", description = "社区收藏信息")
public class CommunityFavorite {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("收藏ID")
    private Long id;
    
    @ApiModelProperty("用户ID")
    private Long userId;
    
    @ApiModelProperty("帖子ID")
    private Long postId;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty("逻辑删除标志")
    @TableLogic
    private Integer deleted;
} 